import 'normalize.css';
import '@/styles/index.scss';
import type { App } from 'vue';
import { useSysConfigStore } from '@/store/module/useSysConfigStore';
import { setupStore } from '@/store';

// @ts-ignore
export async function setupApp(app: App<Element>) {
  setupStore(app);

  const sysConfigStore = useSysConfigStore();
  await sysConfigStore.getSystemConfig();

  document.title = sysConfigStore.sysConfig.SysTitle ?? '工具箱';
}
